﻿
// DataSynAppDlg.h: 头文件
//

#pragma once
#include <map>
#define _CRT_SECURE_NO_WARNINGS

// CDataSynApp 对话框
class CDataSynApp : public CDialogEx
{
// 构造
public:
	CDataSynApp(CWnd* pParent = nullptr);	// 标准构造函数

// 对话框数据
#ifdef AFX_DESIGN_TIME
	enum { IDD = IDD_DataSynApp_DIALOG };
#endif

	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV 支持


// 实现
protected:
	HICON m_hIcon;


	// 生成的消息映射函数
	virtual BOOL OnInitDialog();

	void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	DECLARE_MESSAGE_MAP()
public:
	afx_msg void OnBnClickedButton1();
	CListCtrl m_listBox;
	CListCtrl m_listBox_zg;

	afx_msg void OnBnClickedButton3();
	void setnet(char* net);
	CStatic m_pictureCtrl;
	afx_msg void OnBnClickedButton4();
	CStatic chi_non;
	CStatic chi_send;
	CString strWellName;
	CStatic jing_name;

	CString exePath;

	CString DBType;
	CString DBServer;
	CString DBPORT;
	CString DBSVName;
	CString DBUser;
	CString DBPwd;
	CString DBName;
	CString DBPath;
	CString WELLID;
	CString DRILLID;
	CString SendType;
	CString ZGtime;
	CString BJtime;



	bool b_work;
	void readini();

	afx_msg void OnBnClickedButton2();
	afx_msg void OnClose();
	virtual void OnCancel();
	afx_msg void OnStnClickedStaticpic();
	afx_msg void OnBnClickedButton5();


	CString strSendRemote;

	CStatic zg_non;
	CStatic zg_send;
};

extern std::map<CString, std::map<CString, CString>> iniData;

extern CDataSynApp* appDlg;
std::map<CString, std::map<CString, CString>> ReadIniFile(const CString& filePath);
void WriteIniFile(const CString& filePath, const std::map<CString, std::map<CString, CString>>& iniData);
class Tinco {
public:
	CDataSynApp* appDlg;
	int type;
};
//#import "C:\Program Files\Common Files\system\ado\msado15.dll" no_namespace rename("EOF","adoEof")

#import "C:\Program Files\Common Files\System\ado\msado15.dll" no_namespace rename("EOF", "adoEof")
